home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / rembs1.zip / REMBS.DOC < prev    next >
Text File  |  1988-11-21  |  2KB  |  56 lines

  1. REMBS - Remove Back Spaces
  2.  
  3. This program will remove backspaces from text files using the format:
  4. REMBS oldfile newfile
  5. entered from the DOS command line.
  6.  
  7. I use this program to clean up files of online "chats" which have a lot
  8. of backspacing to correct typos. These backspaces (and the original typos)
  9. show up when you later view or print the file.
  10. After running REMBS your new file should appear with only the corrected
  11. text intact.
  12.  
  13. This program can be modified to suit your needs. The QuickBASIC source code
  14. is included for this purpose.
  15.  
  16. David Duani
  17. Box 425
  18. Stanardsville, VA 22973
  19.  
  20. Toad Hall Note, 20 Nov 88:
  21.  Snarfed from a local BBS, as I recall.
  22.  Worked fine as compiled BASIC but huge!  (>30Kb!)
  23.  Rewrote in Turbo Pascal (v3.0, rewrite it yourself for newer versions).
  24.  Improvements:
  25.    Warns if your output file already exists.
  26.    Aborts if you try to output to your input file!
  27.    Gives you a running and final count of # BS's removed.
  28.    Doesn't clear the stupid screen!
  29.  
  30.  There's an assumption in both these programs:
  31.    The backspace character (BS) is ASCII 8 (Ctrl H).
  32.    The BS character(s) follow erroneous character(s) ('typos').
  33.  However, since that's how a BS is usually used ...
  34.  
  35.  Added a wee little test file (BOGUS.LOG) with backspaces for you
  36.  to play with.
  37.  
  38.  Remember, now:  if you de-archive all these files into one single
  39.  place (subdirectory, floppy, etc.) and try to run the program:
  40.     rembs bogus.log bogus.new
  41.  the REMBS.COM program will ALWAYS run!  You have no way to make
  42.  the REMBS.EXE version run!
  43.  
  44.  If you wanna try out the REMBS.EXE program, you should rename it to
  45.  something else (REMBS1.EXE, for instance).  Specifically commanding:
  46.     rembs.exe bogus.doc bogus.new
  47.  won't work!  (DOS just LOVES .COM programs...)
  48.  
  49.  I considered rewriting to use DOS standard input and output, but decided
  50.  to leave that as 'an exercise for the student.'  (That kinda stuff
  51.  baffles most non-'power users' anyway!)
  52.  
  53.  David Kirschbaum
  54.  Toad Hall
  55.  kirsch@braggvax.ARPA
  56.